package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/19
 * 盘点订单表
 */
@TableName("zbl_inventory_order")
public class ErpInventoryOrder {

    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 订单号
     */
    private String inventorySn;

    private LocalDateTime createTime;

    private String operator;

    /**
     * 订单状态
     * 0:草稿  1:复合中 2:复合完成
     */
    private int status;

    /**
     * 是否复合
     * 0:未复合
     */
    private int isRecom;


    /**
     * 订单模式表
     * mode == 0 盘库单
     * mode == 1 报损单
     * mode == 2 领用单
     * mode == 3 退货单
     */
    private int mode;

    private String context;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getInventorySn() {
        return inventorySn;
    }

    public void setInventorySn(String inventorySn) {
        this.inventorySn = inventorySn;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getIsRecom() {
        return isRecom;
    }

    public void setIsRecom(int isRecom) {
        this.isRecom = isRecom;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "ErpInventoryOrder{" +
                "id=" + id +
                ", inventorySn='" + inventorySn + '\'' +
                ", createTime=" + createTime +
                ", operator='" + operator + '\'' +
                ", status=" + status +
                ", isRecom=" + isRecom +
                '}';
    }
}
